//菜单
const home = () => import('@/views/index.vue');
const Login = () => import("@/views/login/index.vue");

//404页面
const notPage = () => import('@/views/404');

//项目首页
import homeIndex from "./modules/home";
import permitRouter from "./modules/permission";
import pmsRouter from './modules/product';
import wmsRouter from './modules/wms';
import smsRouter from "./modules/sms";
export const constantRouterMap = [
    {
        path: "/",
        component: home,
        redirect: '/home',
        children: [
            ...homeIndex,
            ...permitRouter,
            ...pmsRouter,
            ...wmsRouter,
            ...smsRouter,
        ],
    },
    {
        path: "/login",
        name: "login",
        component: Login
    },
    {
        path: "*",
        redirect: '/404',
    },
    {
        path:"/404",
        name:'404',
        meta:{
            title:'页面丢失',
        },
        component: notPage
    },
];
